﻿-- =============================================
-- Author:		Naresh N Jamadagni
-- Create date: 21 May 2012
-- Description:	Delets the registered computers 
-- =============================================
CREATE PROCEDURE [dbo].[GetLatestEventLogEntry]
AS

BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
   SELECT * FROM [dbo].EventLog where TimeWritten = (SELECT MAX(TimeWritten) FROM [dbo].EventLog);

END
